<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>万虎CMS后台管理</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="__ADMINLTE__bootstrap/css/bootstrap.min.css">

<link rel="stylesheet" href="__ADMINLTE__bootstrap/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="__ADMINLTE__bootstrap/ionicons/css/ionicons.min.css">
<script type="text/javascript" src="__PLUGINS__/webuploader/jquery-1.10.2.min.js"></script>

<!-- Font Awesome 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    -->
<!-- Ionicons
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    --> 
<!-- Theme style -->
<link rel="stylesheet" href="__ADMINLTE__dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="__ADMINLTE__dist/css/skins/skin-blue.min.css">
<link rel="stylesheet" type="text/css" href="__PLUGINS__webuploader/webuploader.css">
<!-- test -->
<script src="__ADMINLTE__plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="__ADMINLTE__plugins/select2/select2.full.min.js"></script>
<link rel="stylesheet" href="__ADMINLTE__plugins/select2/select2.min.css">
<!-- test end -->
<script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- chartjs -->
<script type="text/javascript" charset="utf-8" src="__PLUGINS__chartjs/js/Chart.min.js"></script>
<!-- chartjs END-->
<!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->



<style type="text/css">
.pagea{
    float: right;
}
.pagea .current{
    background:#337ab7;
    border: 1px solid #ddd;
    color: #fff;
    float: left;
    line-height: 1.42857;
    margin-left: -1px;
    padding: 6px 12px;
    position: relative;
    text-decoration: none;
}
.pagea a{
    background:#fafafa;
    border: 1px solid #ddd;
    color: #666;
    float: left;
    line-height: 1.42857;
    margin-left: -1px;
    padding: 6px 12px;
    position: relative;
    text-decoration: none;
}
.listorder{
    border: 1px solid #D0D0D0;
    height: 28px;
    margin: 0 5px 0 0;
    padding: 2px 0 2px 5px;
    border: 1px solid #d0d0d0;
    background: url("public/images/input.png") repeat-x scroll 0 0 #FFFFFF;
    font-size: 12px;
    border-radius: 3px;
}
.alink {
    color:#444;
}
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a href="<?php echo U('Index/index'); ?>" class="logo">
            <span class="logo-mini"><b>W</b>MS</span>
            <span class="logo-lg"><b>Wanhu</b>CMS</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <!-- Navbar Right Menu -->
          <div class="navbar-custom-menu">
		  
            <ul class="nav navbar-nav">
			
			    <li class="dropdown user user-menu">
                <a href="<?php echo U('index/Index/index'); ?>" target="_blank">
                  <span class="hidden-xs">访问网站首页</span>
                </a>
              </li>
              <!-- User Account Menu -->
              <li class="dropdown user user-menu">
			    <?php
			    $user = M('user')->where('id='.session('id'))->find();
			    $group = M('authGroup')->where('id='.$user['group_id'])->find();
				?>
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <!-- <img src="__ADMINLTE__dist/img/user2-160x160.jpg" class="user-image" alt="User Image"> -->
                  <span class="hidden-xs"><?php echo $user['username']; ?></span>
                  <span class="hidden-xs"><?php echo $group['title']; ?></span>
                </a>
				
                <ul class="dropdown-menu">
                  <li class="user-header">
                    <img src="__ADMINLTE__dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                    <p>
                      WanhuCMS
                      <small>since Nov. 2012</small>
                    </p>
                  </li>
                  <!-- Menu Footer-->
                  <li class="user-footer">
                    <div class="pull-left">
                      <a href="<?php echo U('User/edit',array('id'=>session('id'))); ?>" class="btn btn-default btn-flat">修改密码</a>
                    </div>
                    <div class="pull-right">
                      <a href="<?php echo U('Sign/out'); ?>" class="btn btn-default btn-flat">退出</a>
                    </div>
                  </li>
                </ul>
            </div>
        </nav>
    </header>
    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu">

            <li class="header"><a href="<?php echo U('Index/index'); ?>"><i class="fa fa-home"></i>系统首页</a></li>  
           
		   <!-- 内容发布 -->
		    <?php if(authCheck('admin/content/addSliderContent',session('id'))): ?>
            <!-- <li class="<?php if((isset($active['addSliderContent']))): ?>active<?php endif; ?>"><a href="<?php echo U('Content/addSliderContent'); ?>"><i class="fa fa-edit"></i><span>内容发布</span> </a></li> -->
		    <?php endif; ?>
		  <!-- 内容发布 END-->
		  
		   <!-- 内容管理 -->
		   <?php if(authCheck('admin/content/listindex',session('id'))): ?>
           <li class="<?php if((isset($active['content']))): ?>active<?php endif; ?>"><a href="<?php echo U('Content/listindex'); ?>"><i class="fa fa-align-right"></i><span>内容管理</span> </a></li>
		   <?php endif; ?>
		   <!-- 内容管理 END-->
		   
		   <!-- 栏目管理 -->
		    <?php if(authCheck('admin/term/index',session('id'))): ?>
           <li class="<?php if((isset($active['term']))): ?>active<?php endif; ?>"><a href="<?php echo U('Term/index'); ?>"><i class="fa fa-list"></i><span>栏目管理</span></a></li>
		   <?php endif; ?>
		   <!-- 栏目管理 END-->
		   
		   <!-- 添加栏目 -->
		    <?php if(authCheck('admin/term/addTerm',session('id'))): ?>
           <li class="<?php if((isset($active['addTerm']))): ?>active<?php endif; ?>"><a href="<?php echo U('Term/addTerm'); ?>"><i class="fa fa-plus-square"></i><span>添加栏目</span></a></li> 
			<?php endif; ?>
		   <!-- 添加栏目 END-->
		   
			<!-- 营销 -->
			<?php if(authCheck('seo',session('id'))): ?>
			<li class="treeview <?php if((isset($active['seo']))): ?>active<?php endif; ?>">
              <a href="<?php echo U('Term/index'); ?>"><i class="fa fa-line-chart"></i><span>营销</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
			  <?php if(authCheck('admin/seoset/index',session('id'))): ?>
                <li class="<?php if((isset($active['seo']['seoset']))): ?>active<?php endif; ?>"><a href="<?php echo U('Seoset/index'); ?>">SEO</a></li>
			  <?php endif; if(authCheck('admin/online/index',session('id'))): ?>
                  <li class="<?php if((isset($active['seo']['online']))): ?>active<?php endif; ?>"><a href="<?php echo U('Online/index'); ?>">客服</a></li>
			  <?php endif; ?>
              </ul>
            </li>
			<?php endif; ?>
			<!-- 营销 END-->
			
			
			<!-- 模型管理 -->
			<?php if(authCheck('manage',session('id'))): if((APP_DEVEL)): ?>
			<li class="treeview <?php if((isset($active['model']))): ?>active<?php endif; ?>">
              <a href="<?php echo U('Term/index'); ?>"><i class="fa fa-table"></i><span>模型管理</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
			    <?php if(authCheck('admin/term_model/add',session('id'))): ?>
                <li class="<?php if((isset($active['model']['add']))): ?>active<?php endif; ?>"><a href="<?php echo U('TermModel/add'); ?>">添加模型</a></li>
				<?php endif; if(authCheck('admin/term_model/index',session('id'))): ?>
                <li class="<?php if((isset($active['model']['index']))): ?>active<?php endif; ?>"><a href="<?php echo U('TermModel/index'); ?>">模型管理</a></li>
				<?php endif; ?>
              </ul>
            </li>
            <?php endif; endif; ?>
			<!-- 模型管理 END-->
			
			
			<!-- 功能模块 -->
			<?php if(authCheck('function',session('id'))): ?>
			<li class="treeview <?php if((isset($active['function']))): ?>active<?php endif; ?>">
              <a href="#"><i class="fa fa-th-large"></i><span>功能模块</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
			   <?php if(authCheck('admin/links/index',session('id'))): ?>
                <li class="<?php if((isset($active['function']['links']))): ?>active<?php endif; ?>"><a href="<?php echo U('Links/index'); ?>">链接管理</a></li>
				<?php endif; if(authCheck('admin/message/index',session('id'))): ?>
                <li class="<?php if((isset($active['function']['message']))): ?>active<?php endif; ?>"><a href="<?php echo U('Message/index'); ?>">留言管理</a></li>
				<?php endif; ?>
                <li class="<?php if((isset($active['function']['message']))): ?>active<?php endif; ?>"><a href="<?php echo U('Album/index'); ?>">相册管理</a></li>        
              </ul>
            </li>
			<?php endif; ?>
			<!-- 功能模块 END-->
			
			
			
           <!-- 安全与效率 -->
		   <?php if(authCheck('efficiency',session('id'))): ?>
            <li class="treeview <?php if((isset($active['efficiency']))): ?>active<?php endif; ?>">
              <a href="#"><i class="fa fa-area-chart"></i><span>安全与效率</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
			   <?php if(authCheck('admin/links/index',session('id'))): ?>
                <li class="<?php if((isset($active['efficiency']['safe']))): ?>active<?php endif; ?>"><a href="<?php echo U('System/safe'); ?>">系统安全</a></li>
				<?php endif; if(authCheck('admin/system/index',session('id'))): ?>
                  <li class="<?php if((isset($active['efficiency']['upload']))): ?>active<?php endif; ?>"><a href="<?php echo U('System/index'); ?>">检测更新</a></li>
				<?php endif; if(authCheck('admin/get_db/index',session('id'))): ?>
                <li class="<?php if((isset($active['efficiency']['GetDb']))): ?>active<?php endif; ?>"><a href="<?php echo U('GetDb/index',array('method'=>'index')); ?>">数据库备份</a></li>
				<?php endif; if(authCheck('admin/user/manage_log',session('id'))): ?>
                <li class="<?php if((isset($active['efficiency']['log']))): ?>active<?php endif; ?>"><a href="<?php echo U('User/manage_log'); ?>">后台操作日志</a></li>
                <?php endif; ?>
              </ul>
            </li>
			<?php endif; ?>
             <!-- 安全与效率 END-->
			
			<!-- 系统设置-->
			 <?php if(authCheck('fit',session('id'))): ?>
			<li class="treeview <?php if((isset($active['fit']))): ?>active<?php endif; ?>">
              <a href="#"><i class="fa fa-gear"></i><span>系统设置</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                <?php if(authCheck('admin/option/index',session('id'))): ?>
                  <li class="<?php if((isset($active['fit']['option']))): ?>active<?php endif; ?>"> <a href="<?php echo U('Option/index'); ?>"><span>网站设置</span></a></li>
				<?php endif; if(authCheck('admin/user/index',session('id'))): ?>
                  <li class="<?php if((isset($active['fit']['user']))): ?>active<?php endif; ?>"><a href="<?php echo U('User/index'); ?>">管理员设置</a></li>
				<?php endif; if(authCheck('admin/user/group',session('id'))): ?>
                  <li class="<?php if((isset($active['fit']['group']))): ?>active<?php endif; ?>"><a href="<?php echo U('User/group'); ?>">用户组设置</a></li>
				<?php endif; if(authCheck('admin/access/rule_add',session('id'))): ?>
                  <li class="<?php if((isset($active['fit']['rule']))): ?>active<?php endif; ?>"><a href="<?php echo U('Access/rule_add'); ?>">后台增权限</a></li>
				<?php endif; ?>
                <li class="<?php if((isset($active['efficiency']['log']))): ?>active<?php endif; ?>"><a href="<?php echo U('Option/sendmsg'); ?>">短信接口设置</a></li>
              </ul>
            </li>
			<?php endif; ?>


        <!-- 优惠券模块 -->
      <li class="treeview <?php if((isset($active['function']))): ?>active<?php endif; ?>">
              <a href="#"><i class="fa fa-money"></i><span>优惠券模块</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                <li class="<?php if((isset($active['efficiency']['tocheck']))): ?>active<?php endif; ?>"><a href="<?php echo U('Coupon/tocheck'); ?>">优惠券核对信息</a></li>
                <li class="<?php if((isset($active['efficiency']['index']))): ?>active<?php endif; ?>"><a href="<?php echo U('Coupon/index'); ?>">领取优惠券列表</a></li>
                <li class="<?php if((isset($active['efficiency']['list_yi_coupon']))): ?>active<?php endif; ?>"><a href="<?php echo U('Coupon/list_yi_coupon'); ?>">使用优惠券列表</a></li>
                <li class="<?php if((isset($active['efficiency']['list_wei_coupon']))): ?>active<?php endif; ?>"><a href="<?php echo U('Coupon/list_wei_coupon'); ?>">未使用优惠券列表</a></li>
                <li class="<?php if((isset($active['efficiency']['generate']))): ?>active<?php endif; ?>"><a href="<?php echo U('Coupon/generate'); ?>">生成优惠券</a></li>
                <li class="<?php if((isset($active['efficiency']['grant']))): ?>active<?php endif; ?>"><a href="<?php echo U('Coupon/grant'); ?>">发放优惠券</a></li>
              </ul>
            </li>
      <!-- 优惠券模块 END-->

        <!-- 优惠券模块 -->
      <li class="treeview <?php if((isset($active['function']))): ?>active<?php endif; ?>">
              <a href="#"><i class="fa  fa-user"></i><span>会员模块</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                <li class=""><a href="<?php echo U('Member/index'); ?>">会员列表</a></li>
                <li class=""><a href="<?php echo U('Member/add'); ?>">添加会员</a></li>
                <li class=""><a href="<?php echo U('Member/notice_jiangjia'); ?>">降价通知</a></li>
                <li class=""><a href="<?php echo U('Member/notice_kaipan'); ?>">开盘通知</a></li>
               
              </ul>
            </li>
      <!-- 优惠券模块 END-->      
      <!-- 系统设置 END-->
      <?php if(authCheck('admin/system/clear_cache',session('id'))): ?>
      <li class="treeview <?php if((isset($active['clear_cache']))): ?>active<?php endif; ?>">
              <a href="<?php echo U('System/clear_cache'); ?>"><i class="fa fa-refresh"></i><span>清除缓存</span></a>
            </li>
      <?php endif; ?>
      <li class="treeview <?php if((isset($active['sitemap']))): ?>active<?php endif; ?>">
              <a href="<?php echo U('System/createSitemap'); ?>"><i class="fa fa-paperclip"></i><span>生成sitemap</span></a>
      </li>
          </ul>
        </section>
      </aside>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        
          
<section class="content-header">
<h1>
           系统概要
<small>Optional description</small>
</h1>
<ol class="breadcrumb">
	<li><a href="<?php echo U('Index/index'); ?>"><i class="fa fa-dashboard"></i> 首页</a></li>
</ol>
</section>
<!-- Main content -->
<section class="content">

              <!-- 快捷方式  -->
              <div class="box box-solid bg-teal-gradient" >
                <div class="box-header">
                  <i class="fa fa-th"></i>
                  <h3 class="box-title" style="color:#000;">快捷方式</h3>
                  <div class="box-tools pull-right">
                    <button class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <!-- <button class="btn bg-teal btn-sm" data-widget="remove"><i class="fa fa-times"></i></button> -->
                  </div>
                </div>
                <div class="box-body border-radius-none">
                  <div class="chart" id="line-chart" style="height: 150px;color:#000;">

				                <!-- small box -->
           <style>
		   a{ color:#fff; text-decoration:none;}
		   .inner p {padding:2px 0 0 5px;}
		   .inner h4 {font-size:24px;padding:10px 0 0 5px;}
		   </style>
			<div class="col-lg-3 col-xs-6">
			<a href="<?php echo U('Content/addSliderContent'); ?>">
              <div class="small-box bg-green">
                <div class="inner">
                  <h4 >内容发布</h4>
                  <p>Content Publishing</p>
                </div>
                <div class="icon">
                 <i class="ion ion-person-add"></i>
                </div>
                <a href="#" class="small-box-footer">ENTER <i class="fa fa-arrow-circle-right"></i></a>
              </div>
			  </a>
            </div>
			
			<div class="col-lg-3 col-xs-6" >
			<a href="<?php echo U('Content/listindex'); ?>">
              <div class="small-box bg-green">
                <div class="inner">
                  <h4 >内容管理</h4>
                  <p>Content management</p>
                </div>
                <div class="icon" >
                 <i class="ion ion-pie-graph"></i>
                </div>
                <a href="#" class="small-box-footer">ENTER <i class="fa fa-arrow-circle-right"></i></a>
              </div>
			  </a>
            </div>
			
		<div class="col-lg-3 col-xs-6">
			<a href="<?php echo U('Term/index'); ?>">
              <div class="small-box bg-green">
                <div class="inner">
                  <h4 >栏目管理</h4>
                  <p>Column management</p>
                </div>
                <div class="icon">
                  <i class="ion ion-stats-bars"></i>
                </div>
                <a href="#" class="small-box-footer">ENTER<i class="fa fa-arrow-circle-right"></i></a>
              </div>
			  </a>
            </div>
			
			<div class="col-lg-3 col-xs-6">
			<a href="<?php echo U('Links/index'); ?>">
              <div class="small-box bg-green">
                <div class="inner">
                  <h4 >链接管理</h4>
                  <p> Manage Links</p>
                </div>
                <div class="icon">
                 <i class="fa fa-fw fa-bars"></i>
                </div>
                <a href="#" class="small-box-footer">ENTER<i class="fa fa-arrow-circle-right"></i></a>
              </div>
			  </a>
            </div>
			 <!-- small box end -->
				  
				  </div>
                </div>
              </div>
              <!-- 快捷方式 END -->



			    <div class="box box-solid bg-teal-gradient" >
                <div class="box-header">
                  <i class="fa fa-th"></i>
				   <h3 class="box-title" style="color:#000;">浏览量统计</h3>
                  <div class="box-tools pull-right">
                    <button class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                  </div>
                </div>
                <div class="box-body border-radius-none">
			    <div class="row">
					  <!-- 访问量统计 -->
                   <div class="col-md-8">
					  <div class="box box-primary">
					  	<div class="box-header with-border">
						  <h3 class="box-title">近8小时流量趋势</h3>
						<div style="border:1px solid rgba(60,141,188,0.8);width:50px;float:right;margin:10px 0 0 10px;">
						 <!-- PV  -->
						</div>
						<span style="float:right;margin-left:10px;">PV:</span>
						<div style="border:1px solid rgba(90,11,188,0.8);width:50px;float:right;margin:10px 0 0 10px;">
						<!-- IP -->
						</div>
						<span style="float:right;margin-left:10px;">IP:</span>
						<div style="border:1px solid rgba(190,101,18,0.8);width:50px;float:right;margin:10px 0 0 10px;">
						<!-- 独立访客 -->
						</div>
						<span style="float:right;margin-left:10px;">独立访客:</span>
						</div>
						<div class="box-body">
						  <div class="chart">
							<canvas id="areaChart" style="height:250px"></canvas>
						  </div>
						</div>
					  </div>
					</div>
			     <!-- 访问量统计 END-->				
				<!-- 图表 -->
                   <div class="col-md-4">
					  <div class="box box-primary">
						<div class="box-body">
						  <div class="chart" style="color:#000">
						  
				<table class="table table-hover table-striped" >
                <tbody >
                <tr>
                    <td>日期</td>
                    <td>PV/次</td>
                    <td>IP/个</td>
                    <td style="width:100px;">独立访客/个</td>
                </tr>
			
			
                <tr>
                    <td>今天</td>
                    <td style="color:rgba(60,141,188,1)"><?php echo $sum0; ?></td>
                    <td style="color:rgba(90,11,188,1)"><?php echo $day_ip0; ?></td>
                    <td style="width:80px;color:rgba(190,101,18,1);text-align:center"><?php echo $dulifangke0; ?></td>
                </tr>
				
                <tr>
                    <td>昨天</td>
                    <td style="color:rgba(60,141,188,1)"><?php echo $sum1; ?></td>
                    <td style="color:rgba(90,11,188,1)"><?php echo $day_ip1; ?></td>
                    <td style="width:80px;color:rgba(190,101,18,1);text-align:center"><?php echo $dulifangke1; ?></td>
                </tr>
                <tr>
                    <td><?php echo date('Y-m-d',time()-2*86400); ?></td>
                    <td style="color:rgba(60,141,188,1)"><?php echo $sum2; ?></td>
                    <td style="color:rgba(90,11,188,1)"><?php echo $day_ip2; ?></td>
                    <td style="width:80px;color:rgba(190,101,18,1);text-align:center"><?php echo $dulifangke2; ?></td>
                </tr>
                <tr>
                    <td><?php echo date('Y-m-d',time()-3*86400); ?></td>
                    <td style="color:rgba(60,141,188,1)"><?php echo $sum3; ?></td>
                    <td style="color:rgba(90,11,188,1)"><?php echo $day_ip3; ?></td>
                    <td style="width:80px;color:rgba(190,101,18,1);text-align:center"><?php echo $dulifangke3; ?></td>
                </tr>				
                </tbody>
            </table>
					
						
						  </div>
						</div>
					  </div>
					</div>
			     <!-- 图表 END-->	
				</div>


                </div>
              </div>
			  <!-- 访问来源 -->
			  			    <div class="box box-solid bg-teal-gradient" >
                <div class="box-header">
                  <i class="fa fa-th"></i>
				   <h3 class="box-title" style="color:#000;">访问来源</h3>
                  <div class="box-tools pull-right">
                    <button class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                  </div>
                </div>
                <div class="box-body border-radius-none">
			    <div class="row">
					 <!-- 访问来源 -->
                    <div class="col-md-9">
					  <div class="box box-info">
						<div class="box-body">
						  <div class="chart">
							<canvas id="lineChart" style="height:250px"></canvas>
						  </div>
						</div>
					  </div>
					</div>	
                   <!-- 访问来源 END-->	
				<!-- 图表 -->
                   <div class="col-md-3">
					  <div class="box box-info">
						<div class="box-body" style="color:#000;overflow-y:scroll;height:280px;">
						  <div class="chart" >
						  
			<table class="table table-hover table-striped" >
                <tbody >
                <tr>
                    <td>来源</td>
                    <td style="width:70px;">次数/次</td>
                </tr>
				<?php if(is_array($num)): $k = 0; $__LIST__ = $num;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($k % 2 );++$k;?>
                <tr>
                    <td><?php echo $key; ?></td>
                    <td class="mailbox-star" style="text-align:center;"><?php echo $data; ?></td>
                
                </tr>
				
                <?php endforeach; endif; else: echo "" ;endif; ?>
				
                </tbody>
            </table>
				</div>
						</div>
					  </div>
					</div>
			     <!-- 图表 END-->				   
				
				</div>


                </div>
              </div>
			  
			  
			  <!-- 访问来源 END-->
			  
			  
<!-- 			<div class="box box-solid bg-teal-gradient" >
                <div class="box-header">
                  <i class="fa fa-th"></i>
                  <div class="box-tools pull-right">
                    <button class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                  </div>
                </div>
                <div class="box-body border-radius-none">
			    <div class="row">
					 
                   <div class="col-md-6">
					  <div class="box box-primary">
						<div class="box-header with-border">
						  <h3 class="box-title">官方公告</h3>
						  <div class="box-tools pull-right">
							<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
							<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
						  </div>
						</div>
						<div class="box-body">
						  <div class="chart" id="wanhucms_news">
							
						  </div>
						</div>
					  </div>
					</div>
			    				
				</div>
                </div>
            </div> -->
			  
<!-- 	<script type="text/javascript">
	function getLocalTime(nS) {     
	    return new Date(parseInt(nS) * 1000).toLocaleDateString().replace(/[\/]/g,'-');     
	}
    
	$.ajax({  
	  type:"post",
	  async:false,	  
	  url:"http://www.wanhunet.com/index.php/Index/wanhucms/",
	  dataType: "jsonp",
	  jsonp: "callback",
	  jsonpCallback:"flightHandler",
	  success:
	  function(data){
		if(data==null){
			$("#wanhucms_news").html('<li><a href="" style="color:#FF0000;display:inline-block"><p>无最新消息[2016-02-29]</p></a></li>');
			$("#wanhucms_news").addClass("rq-fyxxtext");
			$(".pages").hide();
		}else{
			
			 for(var i=0;i<data.length;i++){
				html='<li><a href="" style="color:#000;display:inline-block"><p>['+getLocalTime(data[i].create_time)+']&nbsp;'+data[i].title+'</p></a></li>';
				$("#wanhucms_news").append(html); 
			}
		}
	  },
	      error:function(a,b,c){  
            alert(a+"++"+b+"++"+c);  
        }  
});
</script> -->

	  <script>
      $(function () {
        var areaChartCanvas = $("#areaChart").get(0).getContext("2d");
        var areaChart = new Chart(areaChartCanvas);
        var areaChartData = {
          labels: [<?php echo $time; ?>],
          datasets: [
            {
              label: "本月访问量",
              fillColor: "rgba(0,0,0,0)", //60,141,188,0.9 PV
              strokeColor: "rgba(60,141,188,0.8)",
              pointColor: "rgba(60,141,188,1)",
              pointStrokeColor: "rgba(60,141,188,1)",
              pointHighlightFill: "rgba(60,141,188,1)",
              pointHighlightStroke: "rgba(60,141,188,1)",
              data: [<?php echo $num_pv; ?>]
            },{
              label: "IP",
              fillColor: "rgba(0,0,0,0)", //60,141,188,0.9 IP
              strokeColor: "rgba(90,11,188,0.8)",
              pointColor: "rgba(90,11,188,0.8)",
              pointStrokeColor: "rgba(90,11,188,0.8)",
              pointHighlightFill: "rgba(90,11,188,0.8)",
              pointHighlightStroke: "rgba(90,11,188,0.8)",
              data: [<?php echo $num_ip; ?>]
            },{
              label: "独立访客",
              fillColor: "rgba(0,0,0,0)", //60,141,188,0.9 独立访客
              strokeColor: "rgba(190,101,18,0.8)",
              pointColor: "rgba(190,101,18,0.8)",
              pointStrokeColor: "rgba(190,101,18,0.8)",
              pointHighlightFill: "rgba(190,101,18,0.8)",
              pointHighlightStroke: "rgba(190,101,18,0.8)",
              data: [<?php echo $du_ip; ?>]
            }
          ]
        };

        var areaChartOptions = {
          showScale: true,
          scaleShowGridLines: false,
          scaleGridLineColor: "rgba(0,0,0,.05)",
          scaleGridLineWidth: 1,
          scaleShowHorizontalLines: true,
          scaleShowVerticalLines: true,
          bezierCurve: true,
          bezierCurveTension: 0.5,
          pointDot: false,
          pointDotRadius: 4,
          pointDotStrokeWidth: 1,
          pointHitDetectionRadius: 20,
          datasetStroke: true,
          datasetStrokeWidth: 2,
          datasetFill: true,
          maintainAspectRatio: true,
          responsive: true
        };
        areaChart.Line(areaChartData, areaChartOptions);

        //-------------
        //- LINE CHART -
        //--------------
		
		
		//饼图
        var pieChartCanvas = $("#lineChart").get(0).getContext("2d");
        var pieChart = new Chart(pieChartCanvas);
        var PieData = [
		<?php if(is_array($num)): $k = 0; $__LIST__ = $num;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($k % 2 );++$k;?>
          {
            value:"<?php echo $data; ?>",
            color: "<?php echo $color[$k-1]; ?>",
            highlight: "<?php echo $color[$k-1]; ?>",
            label: "<?php echo $key; ?>"
          },
		 <?php endforeach; endif; else: echo "" ;endif; ?>
		  
          
        ];
        var pieOptions = {
          segmentShowStroke: true,
          segmentStrokeColor: "#fff",
          segmentStrokeWidth: 2,
          percentageInnerCutout: 50,
          animationSteps: 100,
          animationEasing: "easeOutBounce",
          animateRotate: true,
          animateScale: false,
          responsive: true,
          maintainAspectRatio: true,
        };
        pieChart.Doughnut(PieData, pieOptions);
		
		
       //结束符号
      });

    </script>
</section>
    
    </div>
    <!-- /.content-wrapper -->
    <!-- Main Footer -->
    <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
            WanhuCMS，让世界更了解你
        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2016 <a href="http://www.wanhunet.com" class="alink">Wanhunet</a>.All rights reserved.</strong> 
    </footer>

    <div class="control-sidebar-bg"></div>
</div>
<script src="__ADMINLTE__plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="__ADMINLTE__plugins/select2/select2.full.min.js"></script>
<script src="__ADMINLTE__bootstrap/js/bootstrap.min.js"></script>
<script src="__ADMINLTE__dist/js/app.min.js"></script>
<script type="text/javascript" src="__PLUGINS__webuploader/webuploader.html5only.min.js"></script>
<script type="text/javascript" src="__PLUGINS__webuploader/webuploader.main.js"></script>
<script type="text/javascript" src="__PLUGINS__webuploader/webuploader.custom.js"></script>
<script>
$(function() {
        $('.wu-example-one').createUpload('one', '<?php echo U('AjaxUploads/img'); ?>');
        $('.wu-example').createUpload('list', '<?php echo U('AjaxUploads/img'); ?>');
        $('.wu-example-file').createUpload('file', '<?php echo U('AjaxUploads/file'); ?>');
        });
</script>



</body>
</html>
